class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      # t.column :name, :string
	t.column :login_id , :string , :null => false
	t.column :name , :string , :null => false
	t.column :password , :string , :null => false
	t.column :fl_enable , :integer , :null => false, :default => 0
    end
    User.create(:name=>'admin',:login_id=>'admin',:password=>'admin',:fl_enable=>1)
  end

  def self.down
    drop_table :users
  end
end
